﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using Sparrow.IoC;

namespace Sparrow.HtmlTemplate
{
    public class Template
    {
        public Template(string html)
        {
            var parser = ContextContainer.Shared.Resolve<ITemplateParser>();
            this.Nodes = parser.Parse(html);
        }

        public IEnumerable<INode> Nodes
        {
            get;
            private set;
        }

    }
}
     